package agentspeakeditor.editors.common.AST.Expression;

import agentspeakeditor.editors.common.AST.Terminal.ID;
import agentspeakeditor.editors.common.AST.Terminal.RelationalOperator;
import agentspeakeditor.editors.common.checker.SemanticException;
import agentspeakeditor.editors.common.checker.Visitor;

public class ExprBaseRelation extends ExprBase {
	private ID id1, id2;
	private RelationalOperator op;
	
	public ExprBaseRelation(ID id1, RelationalOperator op, ID id2) {
		this.id1 = id1;
		this.op = op;
		this.id2 = id2;
	}

	public ID getId1() {
		return id1;
	}

	public void setId1(ID id1) {
		this.id1 = id1;
	}

	public ID getId2() {
		return id2;
	}

	public void setId2(ID id2) {
		this.id2 = id2;
	}

	public RelationalOperator getOp() {
		return op;
	}

	public void setOp(RelationalOperator op) {
		this.op = op;
	}

	@Override
	public Object visit(Visitor v, Object arg) throws SemanticException {
		return v.visitExprBaseRelation(this, arg);
	}

	@Override
	public String toString(int level) {
		// TODO Auto-generated method stub
		return null;
	}
}
